import { lazy } from "react";
import type { RouteObject } from "react-router-dom";
const DashoardView = lazy(() => import('../views/layout/children/info/dashoard/DashoardView'))
const UserList = lazy(() => import('../views/layout/children/sys/user/UserList'))
const RoleView = lazy(() => import('../views/layout/children/sys/role/RoleView'))
const AuthsView = lazy(() => import('../views/layout/children/sys/auths/AuthsView'))
const CreateView = lazy(() => import('../views/layout/children/film/create/CreateView'))
const ListView = lazy(() => import('../views/layout/children/film/list/ListView'))

export default [
  {
    path: '/info/dashoard',
    element: <DashoardView />
  },
  {
    path: '/sys/user',
    element: <UserList />
  },
  {
    path: '/sys/role',
    element: <RoleView />
  },
  {
    path: '/sys/auths',
    element: <AuthsView />
  },
  {
    path: '/film/create',
    element: <CreateView />
  },
  {
    path: '/film/list',
    element: <ListView />
  }
] as RouteObject[]
